﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ATMServiceLibrary.DTO;

namespace ATMServiceLibrary
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IATMService
    {
      
        [OperationContract]
        void ThemGiaoDichChuyenKhoan(GiaoDichChuyenKhoanDTO giaoDich);

        [OperationContract]
        void ThemGiaoDichRutTien(GiaoDichRutTienDTO giaoDich);

        [OperationContract]
        TaiKhoanDTO DangNhap(DangNhapDTO info);

        [OperationContract]
        TaiKhoanDTO LayThongTinTaiKhoanNhan(String MaThe);

        [OperationContract]
        Double LaySoDuTaiKhoan(String MaThe);

        [OperationContract]
        void CapNhatSoDuTaiKhoan(String MaThe, Double soDu);        
    }

}
